<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<c:if test="${code==1}">
	<form id="pagerForm" method="post" action="netsiteOnlineAction.action?toResult=searchNetsiteOnline&rightId=${rightId}">
		<input type="hidden" name="pageNum" value="${page.currentPage }" /> <input type="hidden" name="pageSize" value="${page.pageSize }" />
	</form>

	<form onsubmit="return navTabSearch(this);" action="netsiteOnlineAction.action?toResult=searchNetsiteOnline&rightId=${rightId}" method="post">
		<div class="pageContent">
			<table class="list" width="100%" layoutH="58">
				<thead>
					<tr>
						<th align="center">记录日期</th>
						<th align="center">在线时长</th>
						<th align="center">详细记录</th>
					</tr>
				</thead>
				<tbody>
					<s:iterator var="netsite" value="page.data" status="st">
						<tr target="sid_support" rel="<s:property value="#netsite.id" />">
							<th width="5%" align="left"><s:date name="#netsite.recordDay" format="yyyy-MM-dd"/>
							</th>
							<th width="5%" align="left"><s:property value="#netsite.onlineTotal" />小时
							</th>
							<th width="24%" align="left"><s:property value="#netsite.onlineDetail" />
							</th>
						</tr>
					</s:iterator>
				</tbody>
			</table>
			<div class="panelBar">
				<div class="pages">
					<span>共${page.totalNum }条，共${page.totalPage }页</span>
				</div>
				<div class="pagination" targetType="navTab" totalCount="${page.totalNum }" numPerPage="${page.pageSize }" pageNumShown="10" currentPage="${page.currentPage }"></div>
			</div>
		</div>
	</form>
</c:if>
<c:if test="${code==0}">
	${message}
</c:if>